Migrate CI from Scrutinizer CI to GitHub Actions#140
Open
Copilot wants to merge 5 commits into
Open
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: jschroed91 <2540804+jschroed91@users.noreply.github.com>
Co-authored-by: jschroed91 <2540804+jschroed91@users.noreply.github.com>
Co-authored-by: jschroed91 <2540804+jschroed91@users.noreply.github.com>
Co-authored-by: jschroed91 <2540804+jschroed91@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate CI from Scrutinizer CI to GitHub Actions
Migrate CI from Scrutinizer CI to GitHub Actions
Dec 27, 2025
There was a problem hiding this comment.
Pull request overview
This PR migrates the project’s continuous integration from Scrutinizer CI to GitHub Actions, adding a CI workflow to run the PHPUnit test suite, upload coverage to Codecov, and run PHPCS-based code quality checks.
Changes:
- Added a GitHub Actions CI workflow with a PHP version matrix, PHPUnit execution, Codecov upload, and PHPCS reporting.
- Added
squizlabs/php_codesniffertorequire-devfor code style checks. - Updated README badges and expanded
.gitignorefor PHPUnit/coverage artifacts.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
.github/workflows/ci.yml |
Introduces GitHub Actions CI for tests, coverage upload, and PHPCS reporting. |
composer.json |
Adds PHPCS as a dev dependency to support code-quality checks in CI. |
README.md |
Replaces Scrutinizer badges with GitHub Actions and Codecov badges. |
.gitignore |
Ignores PHPUnit result cache and generated coverage output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+11
to
+13
| name: PHP ${{ matrix.php-version }} Test | ||
| runs-on: ubuntu-latest | ||
| permissions: |
Comment on lines
+32
to
+33
| - name: Validate composer.json and composer.lock | ||
| run: composer validate --strict |
Comment on lines
+87
to
+88
| - name: Run PHP_CodeSniffer | ||
| run: vendor/bin/phpcs --report=checkstyle | cs2pr |
Comment on lines
+1
to
+3
| name: CI | ||
|
|
||
| on: |
Comment on lines
+59
to
+62
| name: Code Quality | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read |
Comment on lines
+47
to
+48
| - name: Run test suite | ||
| run: vendor/bin/phpunit --coverage-clover=coverage.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaced Scrutinizer CI with GitHub Actions to provide continuous integration testing, code coverage, and quality checks.
Changes
GitHub Actions workflow (
.github/workflows/ci.yml):contents: read) per security best practicesDependencies: Added
squizlabs/php_codesniffer^3.7 tocomposer.jsonREADME badges: Replaced Scrutinizer CI badges with GitHub Actions CI and Codecov badges
Gitignore: Added
.phpunit.result.cacheandcoverage.xmlWorkflow triggers on pushes and PRs to
masterbranch.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0ca86845ce43291e8f5692c7356fccf3bcf02bf4/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/VbOwIW /usr/bin/composer update --no-interaction nfig/composer/vendor/bin/git om/sebastianberggit it/ b01ba9badc29ad55-r git remo�� add /https---github.com-nikic-PHP-Parser.git/ hp-htmldiff/vendor/nikic/php-parser verage.git gmann-object-refcommit /https---github.-m git(http block)https://api.github.com/repos/doctrine/cache/zipball/56cd022adb5514472cb144c087393c1821911d09/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/ezyang/htmlpurifier/zipball/b287d2a16aceffbf6e0295559b39662612b77fcf/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/5c9eeac41b290a3712d88851518825ad78f45c71/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/b4f479ebdbf63ac605d183ece17d8d7fe49c15c7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/phpunit/zipball/945d0b7f346a084ce5549e95289962972c4272e5/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/8y0L4z /usr/bin/composer install(http block)/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/ATCoAd /usr/bin/composer install --no-interaction(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.